const Koa = require('koa2');
const app=new Koa();
const serve = require('koa-static');
const path =require("path");
const historyFallback = require('koa2-history-api-fallback');

app.use(historyFallback());
app.use(serve(path.join(__dirname,"./public")));

app.listen(3002)